package com.itheima.service;

import com.itheima.pojo.Student;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface StuService {
    //查询所有
    List<Student> findAll(Integer pageNum, Integer pageSize);

    //添加

    void save(Student student);

    //删除

    void delete(Student student);

    //修改

    void update(Student student);

    //查询单个

    Student findByNumber(String number);
}
